<?php

class Db_Tables_Event103 extends Zend_Db_Table
{
    protected $_name = 'event-103';
	var $group_id;
	var $member_from;
	var $member_to;
	
	function AddRecord()
	{
		$result = 0;
		
		if($this->group_id && $this->member_from && $this->member_to)
		{
			$row = $this->createRow();
			$row->group_id = $this->group_id;
			$row->member_from = $this->member_from;
			$row->member_to = $this->member_to;
			$row->ctime = date("Y-m-d H:i:s");
			$result = $row->save();
		}
		
		return $result;
	}
}